home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group96b.txt
/
000004_icon-group-sender _Fri Sep 27 21:49:30 1996.msg
< prev
next >
Wrap
Internet Message Format
|
1997-01-02
|
2KB
Received: by cheltenham.cs.arizona.edu; Mon, 30 Sep 1996 13:38:41 MST
Date: Fri, 27 Sep 1996 21:49:30 -0500
Message-Id: <199609280249.VAA26822@segfault.cs.utsa.edu>
From: Clinton Jeffery <jeffery@segfault.cs.utsa.edu>
To: rjhare@ed.ac.uk
Cc: icon-group@cs.arizona.edu
In-Reply-To: <9609260955.aa11962@uk.ac.ed.tattoo> (message from R J Hare on 26
Sep 96 09:55:36 BST)
Subject: Re: Copying of irregular images
Reply-To: jeffery@ringer.cs.utsa.edu
Errors-To: icon-group-errors@cs.arizona.edu
[Roger Hare writes:]
> I want to copy what is (effectively) an irregular shaped image...
> Is there a "transparent" colour so that I can set the background this way
> before generating my irregular image, so that when copied onto the window,
> the "transparent" pixels in the image do not affect the corresonding
> pixels in the window? I cannot find any mention of this in the WWW pages.
> Should there be such a "transparent" colour or is the whole idea rubbish?
Well, CopyArea() doesn't work this way. I believe the image processing
functions do have a concept of a transparent color that might allow you to
achieve the affect you are after...you might have to do a little bit of work
to turn your drawn window into an image string, and then tweak that image
string to change all pixels drawn in a certain color into the transparent
color. It might be as simple as an IPL procedure call followed by a call
to map(), but it might be a bit more work. Gregg Townsend is the ultimate
authority on images and their manipulation in Icon.
Clint Jeffery
jeffery@cs.utsa.edu
Division of Computer Science, The University of Texas at San Antonio
Research http://www.cs.utsa.edu/research/plss.html